<?php
/*
 * @Descripttion: 
 * @Author: 夜雨
 * @Email: 448408740@qq.com
 * @Date: 2019-12-27 14:31:34
 * @LastEditTime : 2019-12-27 15:48:53
 */
namespace app\admin\controller;
use think\facade\Config;

class System extends Base
{
    public function index(){
        if (request()->isPost()) {
            $param = input('post.');
            $r = editConfig($param);
            $res = ['code' => 0, 'data' => '', 'msg' => $r];
            return json($res);
        }
        $this->assign([
            'system' => Config::get('system.'),
        ]);
        return $this->fetch();
    }

    
}
